package com.example.widget.util

import android.app.Activity
import android.content.Context
import android.content.Intent

inline fun <reified T : Activity> Context.launchActivity(
    noinline config: (Intent.() -> Unit)? = null
) {
    val intent = Intent(this, T::class.java)
//    config?.let { intent.it() }
    config?.invoke(intent)
    startActivity(intent)
}
